use chrono::naive::NaiveDate;
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, sqlx::FromRow, Serialize, Deserialize)]
pub struct News {
    pub id: Option<i32>,
    pub date: NaiveDate,
    pub country: String,
    pub title: String,
    pub content: String,
    pub create_on: Option<NaiveDateTime>,
    pub create_by: Option<String>,
    pub modify_on: Option<NaiveDateTime>,
    pub modify_by: Option<String>,
}
